import { md5,setParam } from '@/utils/Base';
import request from '@/utils/request';
/**
 * 
 * @param {查找后台所有的路由菜单} params 
 * 返回三维数组
 */
export async function setFileName(params) {
  return request('/server/api/admin/v1/adminFile/setFileName', {
    method: 'POST',
    data: (Object.assign(setParam(),params))
    ,
  });
}
/**
 * 
 * @param {查找后台所有的路由菜单} params 
 * 返回三维数组
 */
export async function uploadFileManagerListJson(params) {
  return request('/server/api/admin/v1/adminFile/uploadFileManagerListJson', {
    method: 'POST',
    data: (Object.assign(setParam(),params))
    ,
  });
}
/**
 * 
 * @param {查找后台所有的路由菜单} params 
 * 返回三维数组
 */
export async function removeFile(params) {
  return request('/server/api/admin/v1/adminFile/deleteFile', {
    method: 'POST',
    data: (Object.assign(setParam(),params))
    ,
  });
}
/**
 * 
 * @param {新增一个数据} params array
 */
export async function uploadFileJson(params) {
  
  return request('/server/api/admin/v1/adminFile/uploadFileJson', {
      method: 'POST',
      data: (Object.assign(setParam(),params))
      ,
    });
}